const host = (process.env.NODE_ENV === 'development' ? '/mobile-api' : '');
const mock = (process.env.NODE_ENV === 'development' ? '/mock-api' : '');
//用于本地授权
const authHost = (process.env.NODE_ENV === 'development' ? 'http://agency.lstest.siquality.com/api' : '/api');
const Apis = {
  wechatLogin:`${host}/weixin/login`,
  download:`${host}/front/upload/download.do`,
  Goods:{
    hotList:`${host}/front/goods/hotList.do`,
    goodsListByGrade:`${host}/front/goods/goodsListByGrade.do`,
    get:`${host}/front/goods/get.do`,
    getBuyInfo:`${host}/front/goods/getBuyInfo.do`,
    getSku:`${host}/front/goods/getSku.do`,
    addOrUpdateKjGoodsCustomerItem:`${host}/front/goods/addOrUpdateKjGoodsCustomerItem.do`,
    judgeMoney:`${host}/front/goods/judgeMoney.do`,
    getAlllAddOn:`${host}/front/category/getAlllAddOn.do`,
    getBrandsAddOn:`${host}/front/brands/getAlllAddOn.do`,
    getFavListByCustomerId:`${host}/front/goods/getFavListByCustomerId.do`,
    addFav:`${host}/front/goods/addFav.do`,
    cancelFav:`${host}/front/goods/cancelFav.do`
  },
  Cart:{
    addCart:`${host}/front/cart/addCart.do`,
    getCartList:`${host}/front/cart/getCartList.do`,
    delCart:`${host}/front/cart/delCart.do`,
    getCartNums:`${host}/front/cart/getCartNums.do`,
    getCartListByKeys:`${host}/front/cart/getCartListByKeys.do`,
  },
  Customer:{
    getCustomerAddrs:`${host}/front/customer/getCustomerAddrs.do`,
    getCustomerAddrDefault:`${host}/front/customer/getCustomerAddrDefault.do`,
    addAddr:`${host}/front/customer/addAddr.do`,
    delAddr:`${host}/front/customer/delAddr.do`,
    setDefaultAddr:`${host}/front/customer/setDefaultAddr.do`,
    getAddrById:`${host}/front/customer/getAddrById.do`,
    getCustomerInfo:`${host}/front/customer/getCustomerInfo.do`
  },
  Order:{
    confirmTakeGoods:`${host}/front/order/confirmTakeGoods.do`,
    add:`${host}/front/order/add.do`,
    addByPrize:`${host}/front/order/addByPrize.do`,
    addByJF:`${host}/front/order/addByJF.do`,
    addByCart:`${host}/front/order/addByCart.do`,
    pageListForCustomer:`${host}/front/order/pageListForCustomer.do`
  },
  UserPay:{
    wxPayJSAPI:`${host}/front/userPay/wxPayJSAPI.do`
  },
  Game:{
    gameStart:`${host}/front/game/gameStart.do`,
    gameSuccess:`${host}/front/game/gameSuccess.do`,
    gameFail:`${host}/front/game/gameFail.do`
  },
  Prize:{
    list:`${host}/front/prize/list.do`
  },
  Common:{
    getJssdk:`${host}/front/common/getJssdk.do`
  }
};
export default Apis;
